package org.example.POJO.game;

import org.example.Page.GamePanel;

import java.awt.*;

public class Ma extends Chess {
    public Ma( int camp, Point p) {
        super("ma", camp, p);
    }
    public Ma(int camp,int px) {
        this(camp, new Point(px, 1));
    }

    @Override
    public boolean isAbleMove(Point tp, GamePanel gamePanel) {
        return (isLine(tp) == 0 || isLine(tp) == -1) && !isBlock(tp, gamePanel);
    }
}
